﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Bonehead
{
    public class CallerInfo
    {
        private ParsedMethod mMethod;
        private long mCallCount;

        public CallerInfo(ParsedMethod aMethod)
        {
            mMethod = aMethod;
            mCallCount = 1;
        }

        public string Name
        {
            get { return mMethod.Name; }
        }

        public long CallCount
        {
            get { return mCallCount; }
        }

        [Browsable(false)]
        public ParsedMethod Method
        {
            get { return mMethod; }
        }

        public void AddCall()
        {
            mCallCount++;
        }
    }
}
